.t-editor_div {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  .tr-label-prefix-wraper {
    width: auto;
  }
  .tr-label-prefix-wraper-left {
    width: auto;
    padding-top: 12px;
  }
  .tr-label-prefix {
    justify-content: flex-end;
    text-wrap: wrap;
    gap: 4px;
    margin-right: 8px;
  }
  &.tr-editor-default-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    .tr-label-prefix {
      justify-content: flex-start;
      gap: 4px;
    }
    .tr-label-prefix-wraper {
      padding-bottom: 4px;
      padding-top: 0px;
    }
    .editor-title {
      line-height: 1.5;
    }
  }

  // 错误提示样式和input组件保持一致
  .u-error-message {
    position: relative;
    padding-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #f00;
  }
  .z-disabled:hover {
    border: 1px solid #ff5a66 !important;
    box-shadow: 0 0 3px rgba(#ff5a66, 0.6);
  }
  .z-disabled:focus {
    border: 1px solid #ff5a66 !important;
    box-shadow: 0 0 3px rgba(#ff5a66, 0.6);
  }
  .z-disabled {
    border: 1px solid #ff5a66 !important;
    box-shadow: 0 0 3px rgba(#ff5a66, 0.6);
  }

  .s-focused {
    &:focus {
      background-color: rgba(0, 0, 0, 0.1);
    }
  }
}

.t-editor {
  width: 100%;
  box-sizing: border-box;

  // 默认样式vant的style覆盖了，再还原回来
  ol,
  ul {
    margin: 10px 0;
    padding-left: 2em;
  }
  ol {
    list-style: decimal;
  }
  ul {
    list-style: inherit;
  }
}
.tr-editor-readonly .q-editor .q-editor__content:empty:not(:focus):before {
  color: rgba(0, 0, 0, 0);
}
// hover和focus样式
.t-editor_div .q-editor:hover {
  border: 1px solid var(--t-color);
}

.t-editor_div .q-editor--focused {
  border: 1px solid var(--t-color);
  box-shadow: 0 0 3px rgba(var(--t-color-rgb), 0.6);
}
.editor-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  text-align: right;
  justify-content: flex-end;
}
.t-editor_div .q-editor {
  border-radius: 2px;
}
.t-editor_div .q-editor .q-editor__toolbars-container > div:first-child {
  line-height: 38px;
  color: rgba(0, 0, 0, var(--t-color-opacity, /*批量处理90%透明度*/0.9));
}
.q-btn--dense .on-left {
  margin-right: 8px;
}
.q-editor__content {
  color: rgba(0, 0, 0, var(--t-color-opacity, /*批量处理90%透明度*/0.9));
  padding: 8px;
}
.tr-editor-readonly .q-editor:hover {
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.tr-editor-readonly .q-editor--focused {
       border: 1px solid rgba(0, 0, 0, 0.12);
     box-shadow: 0 0 3px rgba(0, 0, 0, 0);
}
.t-editor_div .q-editor.disabled {
  background-color: #f1f1f1;
  border: 1px solid #d9d9d9;
}
.t-editor_div .q-editor.disabled .q-editor__content {
  color: rgba(0, 0, 0, 0.56);
}
.t-editor_div .q-editor .q-editor__toolbar .q-editor__toolbar-group {
  margin: 0 8px;
}
.t-editor_div .q-editor .q-editor__toolbar .q-editor__toolbar-group .q-icon {
  font-size: 14px;
}
.t-editor_div .q-editor .q-editor__toolbar .q-editor__toolbar-group span {
  font-size: 14px;
}
.q-editor .q-btn {
  margin: 0 4px;
  padding: 0 4px;
}
.q-editor__content:empty:not(:focus):before {
  color: rgba(0, 0, 0, 0.32);
}
